﻿using Sys.Api;
using Sys.Core.Tour;
using Sys.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_tour_route_Edit : PageBase
{
    public TourRoute model { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["id"];

            if (string.IsNullOrEmpty(id))
            {
                model = new TourRoute();

                model.Top = false;
                model.Img = "null.png";
            }
            else { model = RouteBll.I.GetByKey(id); }
        }
    }
}